package com.chb.javabasic.AOP;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class AopTest implements CommandLineRunner{

    @Autowired
    UserService userService;

    @Override
    public void run(String... args) throws Exception {
        userService.createUser("Mark");
        System.out.println();
        System.out.println();
        userService.getUser("Mark");
    }
}
